/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.ta.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.ta.entity.StUserSign;
import com.thinkgem.jeesite.modules.ta.dao.StUserSignDao;

/**
 * 用户签名管理Service
 * 
 * @author TTAO
 * @version 2017-05-31
 */
@Service
@Transactional(readOnly = true)
public class StUserSignService extends CrudService<StUserSignDao, StUserSign> {

	public StUserSign get(String id) {
		return super.get(id);
	}

	public List<String> findQName(String userid) {
		return super.findQName(userid);
	}
	
	public List<StUserSign> findList(StUserSign stUserSign) {
		return super.findList(stUserSign);
	}

	public Page<StUserSign> findPage(Page<StUserSign> page,
			StUserSign stUserSign) {
		return super.findPage(page, stUserSign);
	}

	@Transactional(readOnly = false)
	public void save(StUserSign stUserSign) {
		super.save(stUserSign);
	}

	@Transactional(readOnly = false)
	public void delete(StUserSign stUserSign) {
		super.delete(stUserSign);
	}

	/**
	 * 获取部门下的员工
	 * 
	 * @param id
	 * @return
	 */
	public List<StUserSign> getListByDepartId(String id) {
		return super.getListByDepartId(id);
	}

	@Transactional(readOnly = false)
	public void updateSign(StUserSign stUserSign) {
		super.updateSign(stUserSign);
	}

}